package es.ats.codington.spring.controllers;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;


/**
 * The Class WelcomeController.
 */
@Controller
public class WelcomeController {
	
	/**
	 * Hello.
	 *
	 * @param request the request
	 * @return the string
	 */
	@RequestMapping("*")
	public String hello(HttpServletRequest request) {
	    return "mainpage";
	}
	
	/**
	 * Welcome controller.
	 *
	 * @return the string
	 */
	@RequestMapping(value = "/welcome.htm")
	public String welcomeController() {
		return "mainpage";
	}
}
